<?php


/**
 * Skeleton subclass for performing query and update operations on the 'wedstrijd' table.
 *
 * 
 *
 * You should add additional methods to this class to meet the
 * application requirements.  This class will only be generated as
 * long as it does not already exist in the output directory.
 *
 * @package    propel.generator.database
 */
class WedstrijdPeer extends BaseWedstrijdPeer {
    
    public static function getAllWedstrijden()
    {
        $c = new Criteria();
        $c->addAscendingOrderByColumn(self::DATUM);
        return self::doSelect($c);
    }
    
    public static function getOpkomend()
    {
        $c = new Criteria();
        $c->setLimit(2);
        $c->addAscendingOrderByColumn(self::DATUM);
        $c->add(self::DATUM, time(), Criteria::GREATER_THAN);
        return self::doSelect($c);
    }                  
    

} // WedstrijdPeer
